﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public class SysJobLogRepository : RepositoryAbstract<SysJobLogEntity>, ISysJobLogRepository
    {
        public SysJobLogRepository(IDbContext dbContext) : base(dbContext)
        {

        }

        public async Task<List<SysJobLogEntity>> Query(JobLogQueryModel model)
        {
            var sql = "select * from sysjoblog where SysJobid=@Id";
            return await FromSql.GetPageListAsync(sql, model, null, "", new { Id = model.Id });
        }
    }
}
